#import <Foundation/Foundation.h>

typedef enum {
    KPROJECT_PHASE_INPROGRESS = 1,//进行中的
    KPROJECT_PHASE_DEAL = 2,//成交未审核
    KPROJECT_PHASE_NOTDEAL = 4,//未成交
    KPROJECT_PHASE_REVIEW = 8, //成交已经审核
    KPROJECT_PHASE_ALL = 15,
    KPROJECT_SUB = 16 //子项目
}KKPROJECT_PHASE;

typedef enum {
    KPROJECT_STATUS_INIT = 0, //项目还没有创建
    KPROJECT_STATUS_NEW, //新建项目中
    KPROJECT_STATUS_MODIFY //修改项目

}KKPROJECT_STATUS;


//室外机(swj),轻型商用空调(qxsykt),空气能热水机(kqnrsj),全热 交换器(qrjhq)
#define MACHINE_TAG_FOR_SWJ @"swj"
#define MACHINE_TAG_FOR_QXSYKT @"qxsykt"
#define MACHINE_TAG_FOR_KQNRSJ @"kqnrsj"
#define MACHINE_TAG_FOR_QRJHQ @"qrjhq"
#define MACHINE_TAG_FOR_SNJ @"snj"//室内机


@interface ProjectInfoData : CommonResponse<NSCoding>

@property (nonatomic,copy)NSString *guidId;
@property (nonatomic,copy)NSString *userId;
@property (nonatomic,copy)NSString *city; //项目地点
/**
 * 项目需求: 1 空调 2 地暖 3 空调+地暖
 */
@property (nonatomic,copy)NSString *requirement; //
/**
 * 项目类型: 家装项目 工装项目
 */
@property (nonatomic,copy)NSString *terminal_type;
/**
 * 电源类型: 1 220V 电压 2 380V 电压 3 全部设备
 */
@property (nonatomic,assign)int powerType;

@property (nonatomic,copy)NSString *house;
@property (nonatomic,copy)NSString *ownerName;
@property (nonatomic,copy)NSString *ownerContact;


@property (nonatomic,copy)NSString *ownerWeChar;
@property (nonatomic,copy)NSString *ownerQQ;
@property (nonatomic,copy)NSString *ownerEmail;
@property (nonatomic,assign)double area;
@property (nonatomic,assign)double equipPrice;
@property (nonatomic,assign)double fuCaiPrice;
@property (nonatomic,assign)double renGongPrice;
@property (nonatomic,assign)double taxRate;
@property (nonatomic,assign)double totalPrice;
@property (nonatomic,assign)double transPrice;
@property (nonatomic,copy)NSString *time;
@property (nonatomic,copy)NSString *userContactName;
/**
 *  项目阶段 InProcess = 1, Deal = 2, NotDeal = 4
 */
@property (nonatomic,assign)int phase;
@property (nonatomic,copy)NSString *comment;
/**
 * 电辅热类型: 1 带电辅热 2 不带电辅热 3 全部设备
 */
@property (nonatomic,assign)int dfrType;

@property (nonatomic,assign)int status;

@property (nonatomic,assign)BOOL isBindTemplate; //是否绑定了模板

@property (nonatomic,strong)NSMutableArray *getProjectsResult;

/**
 *  
 
 系统配置中：
 
 1.室外机开关关闭
 房间中，室内设备不允许添加室内机，室外机系统配置不允许
 
 2.轻型商用空调开关关闭
 房间中，室内设备不允许添加轻型商用空调。
 
 3.如果室外机开关和轻型商用空调开关均关闭
 不显示房间信息页面和室外机系统配置页面。
 
 4.空气能热水机开关关闭
 不显示空气能配置页面
 
 5.全热交换器开关关闭
 不显示全热交换器页面配置
 
 */
@property (nonatomic,assign)BOOL swjEnable; //项目中室外机的开关是否打开
@property (nonatomic,assign)BOOL qxsyktEnable; //项目中轻型商用空调的开关是否打开
@property (nonatomic,assign)BOOL kqnrsjEnable; //项目中空气能热水机的开关是否打开
@property (nonatomic,assign)BOOL qrjhqEnable; //项目中全热交换器的开关是否打开

@property (nonatomic,copy)NSString *snjSeries;
@property (nonatomic,copy)NSString *swjSeries; //项目中默认选择的室外机系列ID
@property (nonatomic,copy)NSString *qxsyktSeries; //项目中默认选择的轻型商用空调系列ID
@property (nonatomic,copy)NSString *kqnrsjSeries; //项目中默认选择的空气能热水机系列ID
@property (nonatomic,copy)NSString *qrjhqSeries; //项目中默认选择的全热交换器系列ID

@property (nonatomic,strong)ProjectInfoData *getProjectResult;

@property (nonatomic,strong)NSArray *getReviewProjectsResult; //获取所有已审核或者未审核项目列表

@property (nonatomic,strong)ProjectInfoData *reviewProjectResult; //审核或者取消审核项目

@property (nonatomic,strong)NSMutableArray *getChildUserProjectsResult; //获取子项目列表


@end
